package com.ourcraft.informationcollectionsystem.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// swagger-ui.html
@Configuration
public class Swagger3Config {

    Boolean swaggerEnabled = true; // 最终部署时改为false

    @Bean
    public OpenAPI projectAPI() {
        return new OpenAPI()
                .info(new Info().title("信息收集系统")
                        .description("API说明")
                        .version("1.0"));
    }
}
